﻿<!-- The RibbonWindow is defined in Fluent namespace. So, use the fluent scope resolution. 
    The outer namespace that you include here is Fluent which is in the assembly Fluent
    Notice the line:
    xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
    -->
<Fluent:RibbonWindow
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"     
        mc:Ignorable="d" 
        xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
        xmlns:local="clr-namespace:OrganizeYourSearch"
        x:Class="OrganizeYourSearch.MainWindow"
        Title="Organize Your Search" Height="350" Width="525" 
        WindowState="Maximized" Loaded="RibbonWindow_Loaded"
        Icon="Images\Bluenotebook.ico"  Name="Main_Window">
    <!--  Command Bindings  -->
    <Fluent:RibbonWindow.CommandBindings>
        <CommandBinding Command="ApplicationCommands.Save" CanExecute="SaveBinding_CanExecute" Executed="SaveBinding_Executed"></CommandBinding>
        <CommandBinding Command="ApplicationCommands.Open" CanExecute="OpenBinding_CanExecute" Executed="OpenBinding_Executed"></CommandBinding>
        <CommandBinding Command="ApplicationCommands.New" CanExecute="NewBinding_CanExecute" Executed="NewBinding_Executed"></CommandBinding>
        <CommandBinding Command="local:MyCustomCommands.OpenBrowser" CanExecute="OpenBrowser_CanExecute" Executed="OpenBrowser_Executed"></CommandBinding>
    </Fluent:RibbonWindow.CommandBindings>
	<Fluent:RibbonWindow.Resources>

		<Style x:Key="TabItemFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Rectangle SnapsToDevicePixels="true" Stroke="Black" StrokeDashArray="1 2" 
                                   StrokeThickness="1" Margin="3,3,3,1"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>

		<SolidColorBrush x:Key="TabControlNormalBorderBrush" Color="#8C8E94"/>
		<LinearGradientBrush x:Key="TabItemHotBackground" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FFFFD67B" Offset="0"/>
			<GradientStop Color="#FFFDF6F0" Offset="1"/>
		</LinearGradientBrush>
		<SolidColorBrush x:Key="TabItemSelectedBackground" Color="#F9F9F9"/>
		<SolidColorBrush x:Key="TabItemHotBorderBrush" Color="#3C7FB1"/>
		<SolidColorBrush x:Key="TabItemDisabledBackground" Color="#F4F4F4"/>
		<SolidColorBrush x:Key="TabItemDisabledBorderBrush" Color="#FFC9C7BA"/>

		<Style x:Key="AddNewTabStyle" TargetType="{x:Type local:CloseableTabItem}" >
			<Style.Resources>
				<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
					<GradientStop Color="#F3F3F3" Offset="0"/>
					<GradientStop Color="#EBEBEB" Offset="0.5"/>
					<GradientStop Color="#DDDDDD" Offset="0.5"/>
					<GradientStop Color="#CDCDCD" Offset="1"/>
				</LinearGradientBrush>
				<LinearGradientBrush x:Key="ButtonOverBackground" EndPoint="0,1" StartPoint="0,0">
					<GradientStop Color="#FFFAFAFA" Offset="0"/>
					<GradientStop Color="#FFE0E0E3" Offset="1"/>
				</LinearGradientBrush>
				<LinearGradientBrush x:Key="ButtonPressedBackground" EndPoint="0,1" StartPoint="0,0">
					<GradientStop Color="#FFE0E0E2" Offset="0"/>
					<GradientStop Color="#FFF8F8F8" Offset="1"/>
				</LinearGradientBrush>
				<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF969696"/>
				<Style x:Key="CloseableTabItemButtonStyle" TargetType="{x:Type Button}">
					<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
					<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
					<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
					<Setter Property="BorderThickness" Value="1"/>
					<Setter Property="Foreground" 
                            Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
					<Setter Property="HorizontalContentAlignment" Value="Center"/>
					<Setter Property="VerticalContentAlignment" Value="Center"/>
					<Setter Property="Padding" Value="4"/>
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="{x:Type Button}">
								<Grid>
									<Border SnapsToDevicePixels="true" x:Name="Chrome" 
                                            Background="{TemplateBinding Background}" 
                                            BorderBrush="{TemplateBinding BorderBrush}"
                                            BorderThickness="{TemplateBinding BorderThickness}" 
                                            CornerRadius="2" Opacity="0" />
									<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True"/>
								</Grid>
								<ControlTemplate.Triggers>
									<Trigger Property="IsMouseOver" Value="True">
										<Setter Property="Opacity" TargetName="Chrome" Value="1"/>
										<Setter Property="Background" TargetName="Chrome" Value="{DynamicResource ButtonOverBackground}" />
									</Trigger>
									<Trigger Property="IsPressed" Value="True">
										<Setter Property="Opacity" TargetName="Chrome" Value="1"/>
										<Setter Property="Background" TargetName="Chrome" Value="{DynamicResource ButtonPressedBackground}" />
									</Trigger>
									<Trigger Property="IsEnabled" Value="false">
										<Setter Property="Foreground" Value="#ADADAD"/>
									</Trigger>
								</ControlTemplate.Triggers>
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Style>
			</Style.Resources>
			<Setter Property="FocusVisualStyle" Value="{StaticResource TabItemFocusVisual}"/>
			<Setter Property="Foreground" Value="Black"/>
			<Setter Property="Padding" Value="6,1,6,1"/>
			<Setter Property="BorderBrush" Value="{StaticResource TabControlNormalBorderBrush}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
			<Setter Property="VerticalContentAlignment" Value="Stretch"/>
        
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type local:CloseableTabItem}">
						<Grid SnapsToDevicePixels="true">      
                       
							<Border x:Name="Bd" Background="{TemplateBinding Background}" 
								BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1,1,1,0" 
								CornerRadius="3,5,0,0">
								<DockPanel x:Name="ContentPanel">
									<Path x:Name="Path" Stretch="Fill" StrokeThickness="0.5" Stroke="#FF333333" Fill="#FF969696" Data="F1 M 2.28484e-007,1.33331L 1.33333,0L 4.00001,2.66669L 6.66667,6.10352e-005L 8,1.33331L 5.33334,4L 8,6.66669L 6.66667,8L 4,5.33331L 1.33333,8L 1.086e-007,6.66669L 2.66667,4L 2.28484e-007,1.33331 Z " HorizontalAlignment="Stretch" VerticalAlignment="Top" Width="8" Height="8" Margin="5" RenderTransformOrigin="0.5,0.5">
										<Path.RenderTransform>
											<TransformGroup>
												<ScaleTransform/>
												<SkewTransform/>
												<RotateTransform Angle="45"/>
												<TranslateTransform/>
											</TransformGroup>
										</Path.RenderTransform>
									</Path>
								</DockPanel>
							</Border> 
						</Grid>
                    
						<ControlTemplate.Triggers>
							<Trigger Property="IsMouseOver" Value="true">
								<Setter Property="Background" TargetName="Bd" Value="{StaticResource TabItemHotBackground}"/>
							</Trigger>
							<Trigger Property="IsSelected" Value="true">
								<Setter Property="Panel.ZIndex" Value="1"/>
								<Setter Property="Background" TargetName="Bd" Value="{StaticResource TabItemSelectedBackground}"/>
							</Trigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="false"/>
									<Condition Property="IsMouseOver" Value="true"/>
								</MultiTrigger.Conditions>
								<Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource TabItemHotBorderBrush}"/>
							</MultiTrigger>
							<Trigger Property="TabStripPlacement" Value="Bottom">
								<Setter Property="BorderThickness" TargetName="Bd" Value="1,0,1,1"/>
							</Trigger>
							<Trigger Property="TabStripPlacement" Value="Left">
								<Setter Property="BorderThickness" TargetName="Bd" Value="1,1,0,1"/>
							</Trigger>
							<Trigger Property="TabStripPlacement" Value="Right">
								<Setter Property="BorderThickness" TargetName="Bd" Value="0,1,1,1"/>
							</Trigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="true"/>
									<Condition Property="TabStripPlacement" Value="Top"/>
								</MultiTrigger.Conditions>
								<Setter Property="Margin" Value="-2,-2,-2,-1"/>
								<Setter Property="Margin" TargetName="ContentPanel" Value="0,0,0,1"/>
							</MultiTrigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="true"/>
									<Condition Property="TabStripPlacement" Value="Bottom"/>
								</MultiTrigger.Conditions>
								<Setter Property="Margin" Value="-2,-1,-2,-2"/>
								<Setter Property="Margin" TargetName="ContentPanel" Value="0,1,0,0"/>
							</MultiTrigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="true"/>
									<Condition Property="TabStripPlacement" Value="Left"/>
								</MultiTrigger.Conditions>
								<Setter Property="Margin" Value="-2,-2,-1,-2"/>
								<Setter Property="Margin" TargetName="ContentPanel" Value="0,0,1,0"/>
							</MultiTrigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="true"/>
									<Condition Property="TabStripPlacement" Value="Right"/>
								</MultiTrigger.Conditions>
								<Setter Property="Margin" Value="-1,-2,-2,-2"/>
								<Setter Property="Margin" TargetName="ContentPanel" Value="1,0,0,0"/>
							</MultiTrigger>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Background" TargetName="Bd" Value="{StaticResource TabItemDisabledBackground}"/>
								<Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource TabItemDisabledBorderBrush}"/>
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		
	</Fluent:RibbonWindow.Resources>
    <DockPanel Height="auto" Width="auto">
        <Fluent:Ribbon VerticalAlignment="Stretch" DockPanel.Dock="Top">

            <!-- Backstage File Menu Items Now-->
            <Fluent:Ribbon.BackstageItems>
                <Fluent:Button Command="ApplicationCommands.New"
                               Text="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}" 
                               ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}"
                               Name="btnNew" Icon="Images\table.ico" />
                <Fluent:Button Command="ApplicationCommands.Open"
                               Text="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}" 
                               ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}" 
                               Name="btnOpen" Icon="Images\fontColor.ico"/>
                <Fluent:Button Command="ApplicationCommands.Save"
                               
                               Text="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}" 
                               ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Command.Text}"
                               Name="btnSave" Icon="Images\find.ico"></Fluent:Button>
                

            </Fluent:Ribbon.BackstageItems>
            <!--Quick Access Toolbar Items-->
            <Fluent:Ribbon.QuickAccessItems>
                <!--Use Content or Target Property to set QAT item-->
                <Fluent:QuickAccessMenuItem IsChecked="true">
                    <Fluent:Button Text="Messages" />
                </Fluent:QuickAccessMenuItem>
                <!--You Can Just Bind with Any Control-->
                <Fluent:QuickAccessMenuItem Target="{Binding ElementName=buttonGreen}"/>
            </Fluent:Ribbon.QuickAccessItems>

            
            <!--Tabs  Home Tab -->

            <Fluent:RibbonTabItem Header="Home">

                <!-- .. .. .. Clipboard RibbonGroupBox .. .. .. .. -->
                <Fluent:RibbonGroupBox Header="ClipBoard">
                    <Fluent:Button x:Name="Paste" Text="Paste"
    						Icon="Images\pasteX16.png"
                            LargeIcon="Images\pasteX32.png"
                            Command="Paste"
    						 />
                    <Fluent:Button x:Name="Cut" Text="Cut" SizeDefinition="Middle,Middle,Small" 
    						Icon="Images\CutX16.png" 
                            Command="Cut"/>
                    <Fluent:Button x:Name="Copy" Text="Copy" SizeDefinition="Middle,Middle,Small" 
    						Icon="Images\copyX16.png"
                            Command="Copy"/>
                    <Fluent:Button x:Name="Undo" Text="Undo" SizeDefinition="Middle,Middle,Small"
                            Icon="Images\undo.ico"
                            Command="Undo"/>
                </Fluent:RibbonGroupBox>

                <!-- .. .. .. Font RibbonGroupBox .. .. .. .. -->


                <Fluent:RibbonGroupBox Header="Font">
                    <Fluent:RibbonToolBar>
                        <!--Defining the different sizes of the same "Font" RibbonToolBar. 
                        It's just like style definition of the RibbonToolBar for large, Middle and Small sizes-->
                        <Fluent:RibbonToolBar.LayoutDefinitions>

                            <!--Large Size of the RibbonToolBar-->
                            <Fluent:RibbonToolBarLayoutDefinition Size="Large">
                                <Fluent:RibbonToolBarRow>
                                    <Fluent:RibbonToolBarControlDefinition Target="cbFontFace" Width="127"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="cbFontSize" Width="45"/>
                                </Fluent:RibbonToolBarRow>
                                <Fluent:RibbonToolBarRow>
                                    <Fluent:RibbonToolBarControlDefinition Target="Bold"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="Italics"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="Underline"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="Superscript"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="Subscript"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="FontColor"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="BgColor"/>

                                </Fluent:RibbonToolBarRow>
                            </Fluent:RibbonToolBarLayoutDefinition>

                            <!--Middle Size of the RibbonToolBar-->
                            <Fluent:RibbonToolBarLayoutDefinition Size="Middle">
                                <Fluent:RibbonToolBarRow>
                                    <Fluent:RibbonToolBarControlDefinition Target="cbFontFace" Width="90"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="cbFontSize" Width="45"/>
                                </Fluent:RibbonToolBarRow>
                                <Fluent:RibbonToolBarRow>
                                    <Fluent:RibbonToolBarControlDefinition Target="Bold"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="Italics"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="Underline"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="Superscript"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="Subscript"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="FontColor"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="BgColor"/>
                                </Fluent:RibbonToolBarRow>
                            </Fluent:RibbonToolBarLayoutDefinition>

                            <!--Small Size of the RibbonToolBar-->
                            <Fluent:RibbonToolBarLayoutDefinition Size="Small">
                                <Fluent:RibbonToolBarRow>
                                    <Fluent:RibbonToolBarControlDefinition Target="cbFontFace" Width="45"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="cbFontSize" Width="45"/>
                                </Fluent:RibbonToolBarRow>
                                <Fluent:RibbonToolBarRow>
                                    <Fluent:RibbonToolBarControlDefinition Target="Bold"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="Italics"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="Underline"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="Superscript"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="Subscript"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="FontColor"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="BgColor"/>
                                </Fluent:RibbonToolBarRow>
                            </Fluent:RibbonToolBarLayoutDefinition>
                        </Fluent:RibbonToolBar.LayoutDefinitions>
                        
                        <!-- Now Making the actual ToolBarItems based on the above LayoutDefinitions-->
                        <Fluent:ComboBox x:Name="cbFontFace" Margin="10,0,5,0" MaxHeight="40" ></Fluent:ComboBox>
                        <Fluent:ComboBox x:Name="cbFontSize" Margin="5,0,10,0"></Fluent:ComboBox>
                        <Fluent:Button x:Name="Bold" Icon="Images\bold.ico"
                                      Command="EditingCommands.ToggleBold" Margin="10,0,5,0" />
                        <Fluent:Button x:Name="Italics" Icon="Images\italic.ico"
                                       Command="EditingCommands.ToggleItalic" Margin="0" />
                        <Fluent:Button x:Name="Underline" Icon="Images\underline.ico"
                                       Command="EditingCommands.ToggleUnderline"/>
                        <Fluent:Button x:Name="Superscript" Icon="Images\superscript.ico"
                                       Command="EditingCommands.ToggleSuperscript"/>
                        <Fluent:Button x:Name="Subscript" Icon="Images\subscript.ico"
                                       Command="EditingCommands.ToggleSubscript"/>
                        <Fluent:DropDownButton x:Name="FontColor" Icon="Images\fontColor.ico"/>
                        <Fluent:DropDownButton x:Name="TextHighlightColor" Icon="Images\textHighlight.ico"/>


                    </Fluent:RibbonToolBar>
                </Fluent:RibbonGroupBox>

                <Fluent:RibbonGroupBox Header="Paragraph">
                    <Fluent:RibbonToolBar>
                        <!--Defining the different sizes of the same "Font" RibbonToolBar. 
                        It's just like style definition of the RibbonToolBar for large, Middle and Small sizes-->
                        <Fluent:RibbonToolBar.LayoutDefinitions>

                            <!--Large Size of the RibbonToolBar-->
                            <Fluent:RibbonToolBarLayoutDefinition >
                                <Fluent:RibbonToolBarRow>
                                    <Fluent:RibbonToolBarControlDefinition Target="Bullet" />
                                    <Fluent:RibbonToolBarControlDefinition Target="Numbering" />
                                    <Fluent:RibbonToolBarControlDefinition Target="DecreaseIndent"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="IncreaseIndent"/>

                                </Fluent:RibbonToolBarRow>
                                <Fluent:RibbonToolBarRow>
                                    <Fluent:RibbonToolBarControlDefinition Target="LeftAlign"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="CentreAlign"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="RightAlign"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="BalanceAlign"/>
                                    <Fluent:RibbonToolBarControlDefinition Target="Spacing"/>

                                </Fluent:RibbonToolBarRow>
                            </Fluent:RibbonToolBarLayoutDefinition>

                            <!--Middle Size of the RibbonToolBar-->

                            <!--Small Size of the RibbonToolBar-->

                        </Fluent:RibbonToolBar.LayoutDefinitions>

                        <!-- Now Making the actual ToolBarItems based on the above LayoutDefinitions-->

                        <Fluent:DropDownButton x:Name="Bullet" Margin="10,0,0,0" />
                        <Fluent:DropDownButton x:Name="Numbering"/>
                        <Fluent:Button         x:Name="DecreaseIndent" Icon="Images\DecreaseIndent.ico"
                                               Command="EditingCommands.DecreaseIndentation"/>
                        <Fluent:DropDownButton x:Name="IncreaseIndent" Icon="Images\IncreaseIndent.ico"
                                               Command="EditingCommands.IncreaseIndentation"/>
                        <Fluent:Button         x:Name="LeftAlign" Icon="Images\LeftAlign.ico"
                                               Command="EditingCommands.AlignLeft" Margin="10,0,0,0" />
                        <Fluent:Button         x:Name="CentreAlign" Icon="Images\CentreAlign.ico"
                                               Command="EditingCommands.AlignCenter"/>
                        <Fluent:Button         x:Name="RightAlign" Icon="Images\RightAlign.ico"
                                               Command="EditingCommands.AlignRight"/>
                        <Fluent:Button         x:Name="BalanceAlign" Icon="Images\BalanceAlign.ico"
                                               Command="EditingCommands.AlignJustify"/>
                        <Fluent:DropDownButton x:Name="Spacing" Icon="Images\LineSpacing.ico" Margin="0,0,10,0" />


                    </Fluent:RibbonToolBar>
                </Fluent:RibbonGroupBox>

                <!-- .. .. .. "STYLE" RibbonGroupBox .. .. .. .. -->
                <Fluent:RibbonGroupBox Header="Style">
                    <Fluent:InRibbonGallery MinItemsInRow="3" MaxItemsInRow="8"
    						ItemWidth="40" ItemHeight="56"
    						ResizeMode="Both"/>
                </Fluent:RibbonGroupBox>
                <Fluent:RibbonGroupBox Header="Editing">
                    <Fluent:Button x:Name="Find" Text="Find" SizeDefinition="Middle,Middle,Small"
                            Icon="Images\find.ico"
                            Command="Find"/>
                    <Fluent:Button x:Name="Replace" Text="Replace" SizeDefinition="Middle,Middle,Small"
                            Icon="Images\FindAndReplace.ico"
                            Command="Replace"/>
                </Fluent:RibbonGroupBox>
            </Fluent:RibbonTabItem>

        </Fluent:Ribbon>
        <!-- .. .. .. ..  End of Ribbon Code, now the remaining items.. .. .. .. -->
        
        <TabControl Margin="5" Name="DocTabControl">
            <local:CloseableTabItem x:Name="StartPage" Header="Start Page" >
                <local:StartupPage HorizontalAlignment="Stretch">
                	<local:StartupPage.Background>
                		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                			<GradientStop Color="#FFB1B1DA" Offset="0"/>
                			<GradientStop Color="White" Offset="1"/>
                		</LinearGradientBrush>
                	</local:StartupPage.Background></local:StartupPage>
            </local:CloseableTabItem>
            <local:CloseableTabItem x:Name="AddNewTab"  Header="" Style="{StaticResource AddNewTabStyle}">
                <local:StartupPage>
                	<local:StartupPage.Background>
                		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                			<GradientStop Color="#FFB1B1DA" Offset="0"/>
                			<GradientStop Color="White" Offset="1"/>
                		</LinearGradientBrush>
                	</local:StartupPage.Background></local:StartupPage>
            </local:CloseableTabItem>
            	
            
        </TabControl>
        

    </DockPanel>
</Fluent:RibbonWindow>
